<template>
  <!-- 头部 -->
        <div class="cart_header">
            <div class="container">
                <div class="header_logo">
                    <a href="/" title="清一色官网" class="logo ir"></a>
                </div>
                <div class="header-title has-more">
                    <h2>
                                    确认订单
                    </h2>
                    
                </div>
                <div class="site-topbar">
                    <div class="topbar-info">
                        <span class="user">
                            <a class="user-name">
                                <span class="name">{{username}}</span>
                            </a>
                        </span>
                        <span class="sep">
                            |
                        </span>
                        <a href="/" class="link link-order">我的订单</a>
                    </div>
                </div>
            </div>
        </div>
</template>

<script>
export default {
    name:'heeader',
    data(){
        return{
            username:localStorage.getItem("userInfo")
        }
    }
}
</script>

<style scoped>
a{
    text-decoration: none;
    color:#757575;
}
.cart_header{
    font-size: 12px;
    border-bottom: 2px solid #ff6700;
    background: #fff;
    color: #b0b0b0;
    position: relative;
    z-index: 20;
    height: 100px;
}
.container{
    width: 1280px;
    margin-right: auto;
    margin-left: auto;
}
.header_logo{
    width: 93px;
    margin-top: 26px;
    float: left;
}
.header_logo .logo{
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    overflow: hidden;
    background:url('../../assets/images/logo1.png') no-repeat;
    background-size: 48px 48px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.ir{
    display: block;
    text-align: left;
    text-indent: -9999em;
    overflow: hidden;
}
.has-more {
    height: 48px;
}
.header-title {
    float: left;
    margin-top: 26px;
}
.has-more h2 {
    float: left;
    line-height: 48px;
    margin-bottom: 0;
    font-size: 28px;
}
.header-title h2 {
    font-size: 28px;
    line-height: 48px;
    font-weight: 400;
    color: #424242;
}
.has-more p {
    float: left;
    height: 20px;
    line-height: 20px;
    margin-top: 20px;
    margin-left: 15px;
    color: #757575;
}
.topbar-info{
    position: relative;
    float: right;
    height: 40px;
    line-height: 40px;
    margin-top: 30px;
}
.user{
    float: left;
}
.user-name {
    position: relative;
    z-index: 5;
    display: block;
    width: 110px;
    height: 40px;
    text-align: center;
}
.user-name .name {
    display: inline-block;
    width: auto;
    max-width: 75px;
    text-overflow: ellipsis;
    vertical-align: text-bottom;
    overflow: hidden;
}
.user-name .name:hover{
    color:#ff6700;
}
.sep{
    margin: 0;
    float: left;
}
.link-order {
    width: 70px;
}
.link {
    padding: 0 5px;
    text-align: center;
    margin-left: 24px;
}
.link:hover{
    color: #ff6700;
}
</style>